package designModel.singleInstance;

public enum Singleton_05 {
    INSTANCE();

    //枚举构造方法,执行初始化操作
    Singleton_05() {

    }

    public void doSomething() {
        System.out.println(getClass().getSimpleName() + ":枚举实现线程安全单例");
    }
}
